package com.youan.pangu.base.exception;

/**
 * 业务异常类,逻辑上没有异常但是业务上异常
 * 如: 登录失败
 * @author xsh
 *
 */
public class BusinessException extends Exception{

	private static final long serialVersionUID = 1L;
	private boolean canWriteToLogFile = false;

	public BusinessException(String message) {
		super(message);
	}

	public BusinessException(String message, boolean canWriteToLogFile){
		this(message);
		this.canWriteToLogFile = canWriteToLogFile;
	}

	public boolean isCanWriteToLogFile() {
		return canWriteToLogFile;
	}
}
